const Router = require("koa-router");
const { addVideo, getNewVideo, getVideoById, getVideoByCategory } = require("../controllers/video");
const videoRouter = new Router();


// 
videoRouter.post("/", addVideo);
videoRouter.get("/", getNewVideo);
videoRouter.get('/detail', getVideoById)
videoRouter.get('/category', getVideoByCategory)

module.exports = videoRouter